boolean () { TreePath[] paths = getSelectionModel().getSelectionPaths(); if (paths == null) { return false; } for (TreePath path : paths) { PostfixTemplate template = getTemplateFromPath(path); if (isEditable(template) && (!template.isBuiltin() || template instanceof PostfixChangedBuiltinTemplate)) { return true; } } return false; }