new sample: adds an action to java packages and java files at the same time