boolean (final PsiField field) { try (AccessToken ignore = SlowOperations.knownIssue("IDEA-307701, EA-722024")) { return ReferencesSearch.search(field).forEach(t -> { PsiFile f = t.getElement().getContainingFile(); if (f != null && f.getFileType().equals(GuiFormFileType.INSTANCE)) { return true; } PsiMethod method = PsiTreeUtil.getParentOfType(t.getElement(), PsiMethod.class); if (method != null && method.getName().equals(AsmCodeGenerator.SETUP_METHOD_NAME)) { return true; } return false; }); } catch (IndexNotReadyException e) { return false; } }