clone.clearCaches();
return clone;
}
@NotNull
public PsiClass[] getClasses() {
<BUG>final PsiJavaFileStub stub = (PsiJavaFileStub)getStub();
if (stub != null) {</BUG>
return stub.getChildrenByType(JavaStubElementTypes.CLASS, PsiClass.ARRAY_FACTORY);
}
return calcTreeElement().getChildrenAsPsiElements(Constants.CLASS_BIT_SET, Constants.PSI_CLASS_ARRAY_CONSTRUCTOR);

clone.clearCaches();
return clone;
}
@NotNull
public PsiClass[] getClasses() {
final StubElement<?> stub = getStub();
if (stub != null) {
return stub.getChildrenByType(JavaStubElementTypes.CLASS, PsiClass.ARRAY_FACTORY);
}
return calcTreeElement().getChildrenAsPsiElements(Constants.CLASS_BIT_SET, Constants.PSI_CLASS_ARRAY_CONSTRUCTOR);
