private boolean isLocalClass() {
    PsiClassStub<?> stub = getStub();
    return stub instanceof PsiClassStubImpl &&
           ((PsiClassStubImpl<?>)stub).isLocalClassInner();
  }
private boolean isLocalClass()