mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
IDEA-127075 IDE hang on file structure
This commit is contained in:
@@ -51,12 +51,12 @@ public class PsiMethodTreeElement extends JavaClassTreeElementBase<PsiMethod> im
|
||||
final PsiMethod element = getElement();
|
||||
if (element == null || element instanceof SyntheticElement) return result;
|
||||
|
||||
final TextRange range = element.getTextRange();
|
||||
if (range == null) return result;
|
||||
|
||||
final PsiFile psiFile = element.getContainingFile();
|
||||
if (psiFile == null || psiFile instanceof PsiCompiledElement) return result;
|
||||
|
||||
final TextRange range = element.getTextRange();
|
||||
if (range == null) return result;
|
||||
|
||||
final String fileText = psiFile.getText();
|
||||
if (fileText == null) return result;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user