Example:
class Sample {
void foo() {
bar("foo", "foo");
}
void bar(String x, String y) { } // can be private
}
After the quick-fix is applied:
class Sample {
void foo() {
bar("foo", "foo");
}
private void bar(String x, String y) { }
}
Use the inspection's options to define the rules for the modifier change suggestions.