PsiField (PsiField field) { final PsiField nextField = PsiTreeUtil.getNextSiblingOfType(field, PsiField.class); return nextField != null && field.getTypeElement() == nextField.getTypeElement() ? nextField : null; }