PsiField () { CompositeElement treeElement = getNode(); ASTNode modifierList = treeElement.findChildByRole(ChildRole.MODIFIER_LIST); if (modifierList == null) { ASTNode prevField = treeElement.getTreePrev(); while (prevField != null && prevField.getElementType() != JavaElementType.FIELD) { prevField = prevField.getTreePrev(); } if (prevField == null) return this; return ((PsiFieldImpl)SourceTreeToPsiMap.treeElementToPsi(prevField)).findFirstFieldInDeclaration(); } else { return this; } }