void (@NotNull PsiScopeProcessor scopeProcessor, @NotNull Runnable afterClassLevelBeforeInstanceLevel) { myClass.processClassLevelDeclarations(scopeProcessor); if (!isDefinition()) { afterClassLevelBeforeInstanceLevel.run(); myClass.processInstanceLevelDeclarations(scopeProcessor, null); } }