Collection<String> (@NotNull String name, @NotNull VariableKind variableKind, boolean correctKeywords) { if (!StringUtil.isJavaIdentifier(name)) return List.of(); boolean upperCaseStyle = variableKind == VariableKind.STATIC_FINAL_FIELD; boolean preferLongerNames = getJavaSettings().PREFER_LONGER_NAMES; String prefix = getPrefixByVariableKind(variableKind); String suffix = getSuffixByVariableKind(variableKind); List<String> answer = new ArrayList<>(); for (String suggestion : NameUtil.getSuggestionsByName(name, prefix, suffix, upperCaseStyle, preferLongerNames, false)) { answer.add(correctKeywords ? changeIfNotIdentifier(suggestion) : suggestion); } String wordByPreposition = getWordByPreposition(name, prefix, suffix, upperCaseStyle); if (wordByPreposition != null && (!correctKeywords || isIdentifier(wordByPreposition))) { answer.add(wordByPreposition); } if (name.equals("hashCode")) { answer.add("hash"); } return answer; }