boolean (@NotNull PsiMethod element) { JavaCodeFoldingSettings settings = JavaCodeFoldingSettings.getInstance(); if (!settings.isCollapseAccessors() && !settings.isCollapseMethods()) { return false; } if (isSimplePropertyAccessor(element)) { return settings.isCollapseAccessors(); } return settings.isCollapseMethods(); }